﻿using System.Data.Entity.ModelConfiguration;

using Odebrecht.WcfService.Entities;

namespace Odebrecht.WcfService.Configurations
{
    public class TarefaConfiguration : EntityTypeConfiguration<Tarefa>
    {
        #region Constructors

        public TarefaConfiguration()
        {
            //Primary Keys
            HasKey(x => x.TarefaId);

            //Nome
            Property(x => x.Nome)
                .IsRequired()
                .HasMaxLength(255);;
        }

        #endregion Constructors
    }
}